<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" media="all"
	href="resources/css/style-settings.css" />
<link rel="shortcut icon" href="favicon.ico" />
<title>Settings - AirPi</title>
</head>
<body>
	<a href="console">&lt; BACK</a>

	<h1>Settings</h1>
	<em>Passwords must contain 4 digits. e.g. 1234</em>
	<form action="settings" method="POST">
		<div>
			<h2>Edit admin password</h2>
			<input type="password" name="currentAdminPassword"
				placeholder="Current password" /> <input type="password"
				name="newAdminPassword" placeholder="New password" /><span class="result">${admin_result}</span><span class="error">${admin_error}</span>
		</div><!--
	 --><div>
			<h2>Edit guest password</h2>
			<input type="password" name="currentGuestPassword"
				placeholder="Current password" /> <input type="password"
				name="newGuestPassword" placeholder="New password" /><span class="result">${guest_result}</span><span class="error">${guest_error}</span>
		</div>

		<input type="submit" value="Apply changes" />
	</form>
</body>
</html>